#!/bin/bash
###
 # @Description: 请编写Shell脚本以打印下面语句中字符数小于6的单词
 #               I am oldboy linux, welcome to our training
 # @Version: 2.0
 # @Autor: gang
 # @Date: 2020-09-16 20:40:06
 # @LastEditors: gang
 # @LastEditTime: 2020-10-11 17:12:35
### 
export LANG="zh_CN.UTF-8"
:<<EOF 
1、请编写Shell脚本以打印下面语句中字符数小于6的单词
   I am oldboy linux, welcome to our training
EOF
set -- I am oldboy linux, welcome to our training


:<<EOF
2、截取str变量的内容，从第2个字符之后开始截取，默认截取后面字符的全部，第2个字符不包含在内，也可理解为删除前面的多个字符。

EOF
str="I am phpstudy"
echo ${str:2}

